<?php
  include("connect.php");
  class Buildings
  {
    public $var Building;
    
    function __contruct()
    {
      $query = "SELECT * FROM buildings";
      $result = mysql_query($query);
      $i=0;
      while($row = mysql_fetch_assoc($result)
      {
        $this->Building = $row;
        $i++;
      }
    }
  }
?>